//
//  MessageEntity.m
//  SXH
//
//  Created by 房 国生 on 15/8/27.
//  Copyright (c) 2015年 lyss. All rights reserved.
//

#import "MessageEntity.h"

@implementation MessageEntity

- (instancetype)initWithAttributes:(NSDictionary *)attributes {
    
    self = [super init];
    if (!self) {
        return nil;
    }
    
    self.sender_id = [attributes valueForKeyPath:@"sender_id"];
    self.receiver_id = [attributes valueForKeyPath:@"receiver_id"];
    self.send_time = [attributes valueForKeyPath:@"send_time"];
    self.read_flag = [attributes valueForKeyPath:@"read_flag"];
    self.message_type = [attributes valueForKeyPath:@"message_type"];
    self.message_text = [attributes valueForKeyPath:@"message_text"];
    self.url = [attributes valueForKeyPath:@"url"];
    self.message_title = [attributes valueForKeyPath:@"message_title"];
    
    return self;
}

@end
